import request from '@/utils/request'

// 查询法院地址匹配列表
export function listCourtmapping(query) {
  return request({
    url: '/fs/courtmapping/list',
    method: 'get',
    params: query
  })
}

// 查询法院地址匹配详细
export function getCourtmapping(id) {
  return request({
    url: '/fs/courtmapping/' + id,
    method: 'get'
  })
}

// 新增法院地址匹配
export function addCourtmapping(data) {
  return request({
    url: '/fs/courtmapping',
    method: 'post',
    data: data
  })
}

// 修改法院地址匹配
export function updateCourtmapping(data) {
  return request({
    url: '/fs/courtmapping',
    method: 'put',
    data: data
  })
}

// 删除法院地址匹配
export function delCourtmapping(id) {
  return request({
    url: '/fs/courtmapping/' + id,
    method: 'delete'
  })
}
